package com.ruoyi.map.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 保障房建筑信息数据对象 village_infor
 *
 * @author dihang
 * @date 2023-07-24
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VillageInfor extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 保障房建筑主键id */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "保障房建筑主键id ")
    private Long id;

    /** 保障房建筑名称 */
    @ApiModelProperty(value = "保障房建筑名称 ")
    @Excel(name = "保障房建筑名称")
    private String name;

    /** 保障房建筑X坐标 */
    @ApiModelProperty(value = "保障房建筑X坐标 ")
    @Excel(name = "保障房建筑X坐标")
    private BigDecimal XCoordinate;

    /** 保障房建筑Y坐标 */
    @ApiModelProperty(value = "保障房建筑Y坐标 ")
    @Excel(name = "保障房建筑Y坐标")
    private BigDecimal YCoordinate;

    /** 包含区域数量 */
    @TableField(exist = false)
    @ApiModelProperty(value = "包含区域数量 ")
    @Excel(name = "包含区域数量")
    private Integer includeRegionNum;

    /** 包含区域名称 */
    @TableField(exist = false)
    @ApiModelProperty(value = "包含区域名称 ")
    @Excel(name = "包含区域名称")
    private List<String > includeRegionName;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("xCoordinate", getXCoordinate())
            .append("yCoordinate", getYCoordinate())
            .append("includeRegionNum", getIncludeRegionNum())
            .append("includeRegionName", getIncludeRegionName())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
//            .append("isDelete", getIsDelete())
        .toString();
    }
}
